﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace XS.Tunnel.Cad.SteelBracing.Infrastructure.Extensions
{

    /*****
     * 3.5 不支持 Tuple所以这里扩展一个
     * 
     * *****/


    public class TupleExt
    {
        public static TupleExt<T1, T2> Create<T1,T2>(T1 item1, T2 item2)
        {
            return new TupleExt<T1, T2>
            {
                 Itme1 = item1, 
                 Itme2=item2,
            };
        }

        public static TupleExt<T1, T2,T3> Create<T1, T2,T3>(T1 item1, T2 item2,T3 item3)
        {
            return new TupleExt<T1, T2,T3>
            {
                Itme1 = item1,
                Itme2 = item2,
                Itme3 = item3
            };
        }


    }

    public class TupleExt<T1, T2>
    {
        public T1 Itme1 { get; set; }
        public T2 Itme2 { get; set; }

    }

    public class TupleExt<T1, T2, T3>
    {
        public T1 Itme1 { get; set; }
        public T2 Itme2 { get; set; }
        public T3 Itme3 { get; set; }

    }






}
